/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aiaudio.database.tablegroup;

import aiaudio.lastfm.hbase.CannotCreateTableException;
import aiaudio.database.DatabaseStorage;
import aiaudio.database.tables.TableStructure;
import java.io.IOException;

/**
 *
 * @author nastya
 */
public class RatingPredictionAlgTableGroup extends TableGroup{
    private String recommendationCreationRatingList = "calculated_ratings";
    private String predictionsList = "predicted_top_list";

    public RatingPredictionAlgTableGroup(String key, boolean dropIfExists) {
        super(key, dropIfExists);
    }

    public String getRecommendationCreationRatingList() {
        return addKey(recommendationCreationRatingList);
    }

    public void setRecommendationCreationRatingList(String recommendationCreationRatingList) {
        this.recommendationCreationRatingList = recommendationCreationRatingList;
    }

    public String getPredictionsList() {
        return addKey(predictionsList);
    }

    public void setPredictionsList(String predictionsList) {
        this.predictionsList = predictionsList;
    }

    @Override
    public void create(DatabaseStorage storage) throws CannotCreateTableException, IOException {
        createTable(storage, getPredictionsList(), TableStructure.RecommendationListTable);
        createTable(storage, getRecommendationCreationRatingList(), TableStructure.RatingList);
    }
    
    
    
}
